<template>
    <a-row style="height: 100%">
        <a-col :span="5" style="height: 100%; background-color: #99ccff">
            <SideBar style="height:100%; background-color: #99ccff"/>
        </a-col>
        <a-col :span="19" style="height: 100%;">
            <a-result v-if="this.$store.state.login.student_id === ''" status="warning" title="请重新登陆">
                <template #extra>
                    <a-button key="console" type="primary" @click="()=>$router.push('/login')">
                        前去登陆
                    </a-button>
                </template>
            </a-result>
            <router-view style="height:100%;overflow: auto" v-if="this.$store.state.login.student_id !== ''"/>
        </a-col>
    </a-row>
</template>

<script>
    import SideBar from "@/components/content/student/SideBar";
    export default {
        name: "space",
        components:{
            SideBar
        }
    }
</script>

<style scoped>

</style>